<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>图书明细-- 当当网</title>
		<!-- 引入外部 css 文件 -->
		<link rel="stylesheet" href="../css/tarena.css" type="text/css" />
		<link rel="stylesheet" href="../css/gwap.css" type="text/css" />
	</head>
	<body>
		<div align="center">
			<!--页头开始-->
			<%@include file="../common/head3.jsp" %>
			<!--页头结束-->
			<table width="962" border="0" cellpadding="0" cellspacing="0"
				class="BorderALLSolidCCCCCC">
				<!--DWLayoutTable-->
				<tr>
					<td width="15">
						&nbsp;
					</td>
					<td valign="top">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">

							<!--DWLayoutTable-->
							<tr>
								<td width="746" height="44" valign="top"
									class="bottom_solid_gray">
								
									<strong>
										<br/><s:property value="productDetail.productName"/>
									</strong>
								</td>
							</tr>
							<tr>
								<td height="288" valign="top" class="bottom_dashed_1">
									<table width="100%" border="0" cellpadding="0" cellspacing="0">
										<!--DWLayoutTable-->
										<tr>

											<td width="20" height="18">
												&nbsp;
											</td>
											<td width="207">
												&nbsp;
											</td>
											<td width="36">
												&nbsp;
											</td>
											<td width="159">
												&nbsp;
											</td>
											<td width="55">
												&nbsp;
											</td>
											<td width="66">
												&nbsp;
											</td>
											<td width="191">
												&nbsp;
											</td>
											<td width="12"></td>
										</tr>

										<tr>
											<td height="21">
												&nbsp;
											</td>
											<td rowspan="13" align="center" valign="top">
												<img src=../product/<s:property value="productDetail.productPic"/> 
												width="190"	 height="245" />
												
											</td>
											<td>
												&nbsp;
											</td>
											<td align="left" valign="top">
												<span class="font_12_666">作&nbsp;&nbsp;者：</span><span
													class="font_12_1a66b3"><s:property value="productDetail.author"/></span>
											</td>

											<td>
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<span class="font_12_666">出 版 社：</span><span
													class="font_12_1a66b3"><s:property value="productDetail.publisher"/></span>
											</td>

											<td>
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<span class="font_12_666">出版时间： </span><span
													class="font_12_666"><s:property value="productDetail.publishDate" /></span>
											</td>

											<td>
												&nbsp;
											</td>
											<td align="left" valign="top">
												<span class="font_12_666">字 数： </span><span
													class="font_12_666">240000</span>
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<span class="font_12_666">版 次： 1</span>
											</td>

											<td>
												&nbsp;
											</td>
											<td align="left" valign="top">
												<span class="font_12_666">页 数： 283</span>
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<span class="font_12_666">印刷时间： 2009/01/01</span>
											</td>

											<td>
												&nbsp;
											</td>
											<td align="left" valign="top">
												<span class="font_12_666">开 本： 16开</span>
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<span class="font_12_666">印 次： 1</span>
											</td>

											<td>
												&nbsp;
											</td>
											<td align="left" valign="top">
												<span class="font_12_666">纸 张： 胶版纸</span>
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<span class="font_12_666">I S B N ： 9787561345429</span>
											</td>

											<td>
												&nbsp;
											</td>
											<td align="left" valign="top">
												<span class="font_12_666">包 装： 平装</span>
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>

											<td>
												&nbsp;
											</td>
											<td valign="top">
												<!--DWLayoutEmptyCell-->
												&nbsp;
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="2" align="left" valign="top">
												<!--DWLayoutEmptyCell-->
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>

											<td valign="top">
												<!--DWLayoutEmptyCell-->
												&nbsp;
											</td>
											<td></td>
										</tr>
										<tr>
											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="4" align="left" valign="top" nowrap="nowrap">
												<span class="font_12_666_through_line">定价：￥<s:property value="productDetail.fixedPrice"/></span>
												<span class="font_12_1a66b3">&nbsp;当当价：</span><span
													class="font_12_C30">￥<s:property value="productDetail.dangPrice"/></span>&nbsp;
												<span class="font_12_666">折扣：75折 &nbsp;
													节省：￥7.0&nbsp;&nbsp;钻石vip价：￥<s:property value="productDetail.fixedPrice - productDetail.dangPrice"/></span>
											</td>

											<td></td>
										</tr>
										<tr>
											<td height="20"></td>
											<td></td>
											<td colspan="4" valign="top">
												<!--DWLayoutEmptyCell-->
												&nbsp;
											</td>
											<td></td>
										</tr>
										<tr>

											<td height="20">
												&nbsp;
											</td>
											<td>
												&nbsp;
											</td>
											<td colspan="4" align="left" valign="middle">
												<s:if test="#session[@com.dangdang.util.Constants@USER_KEY] != null">
													<a href="javascript:;"><img
															src="../images/icon/booksale.gif" alt="购物车" width="69"
															height="21" border="0" onclick="additem(<s:property value="productDetail.id"/>);">
													</a>
												</s:if>
												<s:else>
													<a href="../cart/additem.action?productId=<s:property value="productDetail.id" />&showcart=true"> <img
													height="21" border="0"	src='../images/icon/booksale.gif' /> </a>
												</s:else>
													<span id='cartinfo_<s:property value="productDetail.id" />'></span>
											</td>
											<td></td>
										</tr>
										<tr>

											<td height="11"></td>
											<td></td>
											<td colspan="4" rowspan="2" align="left" valign="bottom">
												<span class="font_12_666">顾客评分：</span>
												<img src="../images/icon/star_red.gif" />
												<img src="../images/icon/star_red.gif" />
												<img src="../images/icon/star_red.gif" />
												<img src="../images/icon/star_red.gif" />
												<img src="../images/icon/star_red2.gif" />
												<span class="font_12_666">共有商品评论</span><span
													class="font_12_666">123 条</span>
												<span class="font_12_1a66b3">查看评论摘要</span>
											</td>
											<td></td>
										</tr>
									</table>
								</td>

							</tr>
						</table>
					</td>
					<td width="15">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
					<td valign="top">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<!--DWLayoutTable-->
							<tr>

								<td width="746" height="40" align="left" valign="top">
									<img src="../images/icon/bg_point1.gif" alt="" />
									&nbsp;
									<span class="font_14_black_bold">内容介绍</span> &nbsp;
								</td>
							</tr>
							<tr>
								<td align="left" valign="top">
									<span class="font_12_0D7101">希望这本虚构的小说，能够对人们的生活有一些超越职场规则的现实意义，使我能回报市场和读者的知遇于万一<br>
										。——李可<br> 2005－2006年，中国一线城市。<br>
										对大部分人而言，挣钱的速度明显跟不上房价的涨幅。而沉寂四年的A股正走出漫漫熊途，开始了从998向6140的辉煌进发。<br>
										淡泊从容越来越成为奢侈，时代在湍急中奔流。<br> 作为对各种难题胸有成竹的PROBLEM
										SOLVER，杜拉拉日显强大。当女性的缺点和可爱，日益为专业的成熟及规则所取代，<br>
										让人不禁疑惑“成熟”是褒义还是贬义？而职场版的说文解字中，下属无性别，上级的性别则只关乎授权的程度，
										WHY比WHAT更重要。<br>
										每个人都有难处：姚杨年过而立竞聘经理失败，怀孕日程遥遥无期；李坤掏心掏肺栽培小苏，反遭小苏翻脸无情；林如成被下属的发财气得发疯，<br>
										但无从干掉业绩不错的股神杨瑞；TONY林认为培训生制度弱智，却被迫协助好大喜功的HR成就功名。<br>
										对八十后沙当当而言，爱人不是问题，问题是房子的产权。<br>
										对七十后杜拉拉而言，失恋不是问题，问题是没有更好的恋情。<br>

										宽带薪酬制中吃了亏的拉拉决定跳槽，怀着恶劣的心情，在2006炎热的盛夏，她踏上了漫漫的求职之路……作为著名的“倔驴”，她一直以为：你我会情长意久。<br>
										中产之梦多半就是在这号人手中实现的。 </span>
								</td>
							</tr>
						</table>
					</td>
					<td>
						&nbsp;
					</td>
				</tr>
			</table>
			<!--页尾开始 -->
			<!-- 产权申明 -->

			<table width="962" height="120" border="0" cellpadding="0"
				cellspacing="0" class="top_solid_FF6633">
				<tr>
					<td width="100%" height="60">
						<span class="font_12_0D7101"><center>
								公司简介 | 诚征英才 | 网站联盟 | 百货招商 | 交易条款
							</center>
						</span>
					</td>
				</tr>
				<tr>
					<td width="100%" height="60" align="center" valign="middle">
						<span class="font_12_666">Copyright (C) 当当网 2009-2019, All
							Rights Reserved <img src="../images/icon/validate.gif" alt=""
								width="40" height="48" align="middle" /> <a
							href="http://www.miibeian.gov.cn"> 京ICP证041189号 音像制品经营许可证
								京音网8号</a> </span>
					</td>
				</tr>
			</table>
			<!--页尾结束 -->
		</div>
		<script type="text/javascript">
			//传一个产品ID过来
			function additem(productId) {
			new Ajax.Request('../cart/additem.action?productId='+productId,{method:'get',onSuccess:function(req) {
				var st = req.responseText.evalJSON().status;
									//静态类的静态属性地址
				if(st==<s:property value="@com.dangdang.util.Constants@CART_STATUS_OK"/>) {
					//Proto
					$('cartinfo_'+productId).style.color='green';
					$('cartinfo_'+productId).innerHTML = "成功购买";
				} else if(st==<s:property value="@com.dangdang.util.Constants@CART_STATUS_EXIST"/>){
					$('cartinfo_'+productId).style.color='red';
					$('cartinfo_'+productId).innerHTML = "已经在购物车";
				}
				window.setTimeout(function(){$('cartinfo_'+productId).innerHTML=""},3000)
			}})
			}
		</script>
	</body>
</html>